﻿

Partial Class AjaxCall_OpenDocument
    Inherits System.Web.UI.Page

    Public Function OuvrirFichier(ByVal ID As String) As String

        Dim connec As ConnecteurAras = New ConnecteurAras(Session("LOGON_NAME"), Session("LOGON_PASS"))
        Dim resultat As String = connec.openfile(ID)


        If resultat = "erreur" Then

            connec.logActivity("error", "File ID appelé", ID + " - " + resultat)

        Else
            connec.logActivity("Success", "File ID appelé", ID + " - " + resultat)
        End If

        Return resultat

    End Function

    
End Class
